import VueRouter from 'vue-router'
import index from './component/tabbar/index.vue'
import cart from './component/tabbar/cart.vue'
import member from './component/tabbar/member.vue'
import search from './component/tabbar/search.vue'
import newslist from './component/news/newslist.vue'
import newslifo from './component/news/newsinfo.vue'
import photolist from './component/photo/photolist.vue'
import photodetails from './component/photo/photodetails.vue'
import good from './component/goods/good.vue'
import goodinfo from './component/goods/goodinfo.vue'
import goodsDesc from './component/goods/goodsDesc.vue'
import goodsComment from './component/goods/goodsComment.vue'
var router = new VueRouter({
	routes: [{
			path: '/index',
			component:index
		},
		{
			path: '/cart',
			component:cart
		},
		{
			path: '/member',
			component:member
		},
		{
			path: '/search',
			component:search
		},
		{
			path: '/index/newslist',
			component:newslist
		},
			{
			path: '/index/newsinfo/:id',
			component:newslifo
		},
		
			{
			path: '/index/photolist',
			component: photolist
		},
		{
			path: '/index/photolist/photodetails/:id',
			component:photodetails
		},
		{
			path: '/index/goods',
			component:good
		},
		{
			path: '/index/goods/goodinfo/:id',
			component:goodinfo
		},
		{
			path: '/index/godesc/:id',
			component:goodsDesc,
			name:'goodsDesc'
		},{
			path: '/index/comment/:id',
			component:goodsComment,
			name:'goodsComment'
		},
	],
	linkActiveClass: 'mui-active'
})
export default router